package com.zr.datamodel;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
 * 货物类别实体类
 * @author qiuchun
 *
 */
@Entity
@Table(name="ld_goodstype")
public class GoodTypeDM {
	//货物类别id
	private int id;
	//货物类别名称
	private String name;
	//备注
	private String remark;
	private List<GoodsDM> goods=new ArrayList<>();
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@OneToMany(mappedBy="goodtype")
	public List<GoodsDM> getGoods() {
		return goods;
	}
	public void setGoods(List<GoodsDM> goods) {
		this.goods = goods;
	}
	
}
